home *** CD-ROM | disk | FTP | other *** search
/ National Lampoon's Blind Date / National Lampoon's Blind Date.iso / bd / part1.mmm / 00413_Script_413 < prev    next >
Text File  |  1995-03-01  |  7KB  |  240 lines

  1. ----------------------------------------------------------------
  2. on startMovie
  3.   global theFunds, moodRing, wallaOn, vol
  4.   
  5.   set the text of cast 908 to "$" & theFunds
  6.   addMood(0)
  7.   updateStage
  8.   set wallaOn = FALSE
  9.   set vol = 255
  10.   set the volume of sound 1 to 255
  11. end startMovie
  12. ----------------------------------------------------------------
  13. on setUpFirstFrame
  14.   setUpNoFade()
  15. end setUpFirstFrame
  16. ----------------------------------------------------------------
  17. on setUpNoFade
  18.   global wallaOn, hintLock
  19.   
  20.   releaseMouseUp()  
  21.   set wallaOn = FALSE
  22.   puppetSound 0
  23.   set the volume of sound 1 to 255
  24.   set hintLock = FALSE
  25. end setUpNoFade
  26. ----------------------------------------------------------------
  27. on waitForMovie chan
  28.   global wallaOn
  29.   
  30.   waitMovieNoSound(chan)
  31.   set wallaOn = TRUE
  32. end waitForMovie
  33. ----------------------------------------------------------------
  34. on waitMovieNoSound chan
  35.   repeat while the movieRate of sprite chan > 0
  36.     updateStage  
  37.     if mouseDown() then
  38.       set the movieTime of sprite chan to ¼
  39.       (the duration of cast (the castNum of sprite chan)) - 1
  40.       updateStage
  41.       exit repeat
  42.     end if
  43.   end repeat
  44. end waitMovieNoSound
  45. ----------------------------------------------------------------
  46. on loopLastFrame
  47.   releaseMouseUp()  
  48.   if the movieRate of sprite 9 = 0 then
  49.     loopLastNoMovie()
  50.   else
  51.     go to the frame
  52.   end if
  53. end loopLastFrame
  54. ----------------------------------------------------------------
  55. on loopLastNoMovie
  56.   global wallaOn, vol
  57.   
  58.   releaseMouseUp()  
  59.   if wallaOn then
  60.     if not soundBusy(1) and not mouseDown() then
  61.       fadeInWalla()
  62.     else if vol < 255 then
  63.       set vol = vol + 5
  64.       set the volume of sound 1 to vol
  65.     end if   
  66.   end if
  67.   go to the frame
  68. end loopLastNoMovie
  69. ----------------------------------------------------------------
  70. on trapMouseUp
  71.   repeat while mouseDown()
  72.     if the timer > 50 then exit repeat
  73.   end repeat
  74.   when mouseUp then dontPassEvent
  75. end
  76. ----------------------------------------------------------------
  77. on releaseMouseUp
  78.   when mouseUp then nothing
  79. end
  80. ----------------------------------------------------------------
  81. on doNextNoClick nextFrame
  82.   go to frame nextFrame
  83. end doNextNoClick
  84. ----------------------------------------------------------------
  85. on doNextScene nextFrame
  86.   PlayDown()
  87.   doNextNoClick(nextFrame)
  88. end doNextFrame
  89. ----------------------------------------------------------------
  90. on doMovieFrame theMovie, theFrame
  91.   puppetSound 0
  92.   go to frame theFrame of movie theMovie
  93. end doNextFrame
  94. ----------------------------------------------------------------
  95. on fadeInMusic
  96.   global currSong, wallaOn, vol
  97.   
  98.   set the volume of sound 1 to 25
  99.   if currSong = 1 then
  100.     puppetSound "unbelwal.aif"
  101.   else if currSong = 2 then
  102.     puppetSound "song4wal.aif"
  103.   else if currSong = 3 then
  104.     puppetSound "song3wal.aif"
  105.   else
  106.     puppetSound "song2wal.aif"
  107.     set currSong = 0
  108.   end if
  109.   set currSong = currSong + 1
  110.   set wallaOn = TRUE
  111.   set vol = 0
  112. end fadeInMusic
  113. ----------------------------------------------------------------
  114. on fadeInWalla
  115.   fadeInMusic()  
  116. end fadeInWalla
  117. ----------------------------------------------------------------
  118. on fadeBackIn
  119.   global wallaOn, currSong
  120.   
  121.   if wallaOn = TRUE then
  122.     set currSong = currSong - 1
  123.   end if
  124. end fadeBackIn
  125. ----------------------------------------------------------------
  126. on doStopper
  127.   global currStopper
  128.   
  129.   puppetsound 0
  130.   puppetSprite 7, FALSE
  131.   
  132.   set currStopper = currStopper + 1
  133.   if currStopper > 11 or currStopper < 1 then
  134.     set currStopper = 1
  135.   end if
  136.   
  137.   go to frame "st" & currStopper of movie "MovStop.MMM"
  138. end doStopper
  139. ----------------------------------------------------------------
  140. on doStopper2 frm
  141.   puppetSound 0
  142.   go to frame frm of movie "MovStop.MMM"
  143. end doStopper2
  144. ----------------------------------------------------------------
  145. on doDrinkLoop retScene
  146.   global returnScene
  147.   global Drinks
  148.   
  149.   set returnScene = retScene  
  150.   set Drinks = Drinks + 1
  151.   if Drinks = 1 then
  152.     doNextScene("s84")
  153.   else if Drinks = 2 then
  154.     doNextScene("s88")
  155.   else if Drinks = 3 then
  156.     doNextScene("s92")
  157.   else
  158.     doNextScene("s93")
  159.   end if
  160.   
  161. end doDrinkLoop
  162. ----------------------------------------------------------------
  163. on deductFunds howMuch, chan
  164.   global hintLock
  165.   
  166.   set hintLock = TRUE
  167.   addFunds(-howMuch)
  168.   puppetSound "cash.AIFF"
  169.   puppetSprite chan, 1
  170.   set the visibility of sprite chan to 1
  171.   repeat while the locV of sprite chan > ¼
  172.     -(the height of sprite chan)
  173.     set the locH of sprite chan = the locH of sprite chan - 1 
  174.     set the locV of sprite chan = the locV of sprite chan - 1 
  175.     updateStage  
  176.   end repeat
  177.   puppetSprite chan, 0
  178.   repeat while soundbusy(1)
  179.     nothing
  180.   end repeat
  181. end deductFunds
  182. ----------------------------------------------------------------
  183. on addFunds howMuch
  184.   global theFunds
  185.   
  186.   set theFunds = theFunds + howMuch
  187.   set the text of cast 908 to "$" & theFunds
  188. end
  189. ----------------------------------------------------------------
  190. on addMood mood
  191.   global moodRing
  192.   
  193.   set ringChan = 14
  194.   puppetSprite ringChan, TRUE
  195.   set moodRing = moodRing + mood
  196.   if moodRing < -4 then
  197.     -- alert "mood ring too low"
  198.     set moodRing = -4
  199.     set the castNum of sprite ringChan to 922 + moodRing
  200.     updateStage 
  201.     doStopper2("Mood") 
  202.     return FALSE  
  203.   else if moodRing > 4 then
  204.     set moodRing = 4
  205.   end if
  206.   set the castNum of sprite ringChan to 922 + moodRing
  207.   updateStage 
  208.   --puppetSprite ringChan, FALSE
  209.   return TRUE  
  210. end addMood
  211. ----------------------------------------------------------------
  212. on addMoodAndGo mood, scene
  213.   if addMood(mood) then
  214.     -- then the mood was not too low
  215.     doNextScene(scene)
  216.   end if
  217. end addMoodAndGo
  218. ----------------------------------------------------------------
  219. on doEasterEgg egg, retScene
  220.   global returnScene
  221.   
  222.   set returnScene = retScene
  223.   go to frame egg
  224. end doEasterEgg
  225. ----------------------------------------------------------------
  226. on getLabel
  227.   
  228.   set currFrame = marker(0)
  229.   set n = the number of lines in the labelList
  230.   set i = 1
  231.   repeat while i <= n 
  232.     if label(line i of the labelList) = currFrame then
  233.       return line i of the labelList
  234.     else
  235.       set i = i + 1  
  236.     end if 
  237.   end repeat
  238.   return line 1 of the labelList
  239. end getLabel
  240.